import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'//导入src的router的index.js 默认找到index.js的文件导入
import App from './App.vue'

import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'//导入模块

const app = createApp(App);
const pinia = createPinia();
const persist = createPersistedState();//得到persist的实例
pinia.use(persist)//在pina中使用persist
app.use(pinia)
app.use(router)
app.use(ElementPlus);
app.mount('#app')
